const {bar , foo, catchError} = require('./utils');
const { handleError } = require('./Ding');

catchError(() => {
  console.log('重制');
})

bar('hello world');
foo('hello world');

console.log('hello world2');

process.on('uncaughtException', handleError);
process.on('unhandledRejection', handleError);